
echo "Updating desktop database: update-desktop-database -q usr/share/applications"
chroot "$rootdir" /usr/bin/update-desktop-database -q usr/share/applications 2> /dev/null

echo "Updating ICON cache: gtk-update-icon-cache -q -f -i usr/share/icons/hicolor"
chroot "$rootdir" /usr/bin/gtk-update-icon-cache -q -f -i usr/share/icons/hicolor 2> /dev/null

echo "Updating ICON cache: gtk-update-icon-cache -q -t -f -i usr/share/icons/Faenza"
chroot "$rootdir" /usr/bin/gtk-update-icon-cache -q -t -f -i usr/share/icons/Faenza 2> /dev/null

